<!DOCTYPE html>
<html>
<head>
    <title>${config.objectDesc}</title>
${r'<#include "/sys/header.html"/>'}
</head>
<body>
<div class="panel panel-default" id="rrapp" v-cloak>
    <div class="panel-heading">{{title}}</div>
    <form class="form-horizontal">
    <#list columns as prop>
		<div class="form-group">
            <div class="col-sm-2 control-label">${prop.columnComment}</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="${config.objectName?uncap_first}.${prop.alias}"
                       placeholder="${prop.columnComment}"/>
            </div>
        </div>
    </#list>
        <div class="form-group">
            <div class="col-sm-2 control-label"></div>
            <input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
            &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="back" value="返回"/>
        </div>
    </form>
</div>

<script src="${r"${base}"}/js/${config.model}/${config.objectName?uncap_first}_add.js?_${r"${.now?string['yyyyMMddhhmmSS']}"}"></script>
</body>
</html>